package com.dlnu.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import com.dlnu.config.Entity;
import java.util.Date;
import java.util.List;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Notice extends Entity{

	private Integer id;

	@Length(max = 200)
	private String title;

	@Length(max = 0)
	private String content;

	private Date createTime;

	private Integer userId;

	@Length(max = 200)
	private String filepath;

	private User user;

	private List<Integer> buildingIds;

	private Integer buildingId;
}